package com.example.dairenkun.neufoodshop.model;

import com.example.dairenkun.neufoodshop.service.SearchService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/5/8.
 */

public class SearchModel {
    private Retrofit retrofit;
    public SearchModel(){
        retrofit=new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl("http://60.205.189.39/")
                .build();

    }
    //搜索
    public Call Search(String content){
        SearchService Service=retrofit.create(SearchService.class);
        return Service.getsearchList(content);
    }
}
